var express = require("express");
var router = express.Router();
const { success, failure } = require("../../utils/responses");
/* GET home page. */
router.post("/createtoken", function (req, res, next) {
  const { appkey, appsecret } = req.body;
  if (appkey && appsecret) {
    const data = {
      code: 0,
      message: "",
      data: {
        accessToken:
          "50002400834dMShsDmop3NrEfaozeisCSTGAfbuCl0YdKH15967dafOlxfMa3oYlpO2Q",
        expireTime: 1468663236386,
      },
    };
    res.json(data);
  }
});

module.exports = router;
